﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;

namespace SmallBusinessKit.DataAccess.Interfaces
{
    public interface IRepository<T> where T : class
    {
        T GetById(string id);
        T Get(Expression<Func<T, bool>> clause);
        IEnumerable<T> GetMany(Expression<Func<T, bool>> clause);
        IEnumerable<T> GetAll();
        IQueryable<T> GetAsQueryable();
    }
}
